package cn.hxzy.client;

import cn.hxzy.domain.Chapter;
import cn.hxzy.domain.Section;
import cn.hxzy.response.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "course-service", contextId = "course-service-2")
public interface ChapterClient {
    /**
     * 根据课程Id查询所有章节
     */
    @GetMapping("/chapter/select")
    R<List<Chapter>> courseList(@RequestParam Integer courseId);



}
